package com.test;

import java.io.*;
import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;

public class Client {
public static void main(String[] args) throws UnknownHostException, IOException {
	Socket socket=new Socket("localhost",4111);
	BufferedReader bi=new BufferedReader(new InputStreamReader(socket.getInputStream()));
	BufferedWriter bw=new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
	bw.write("hello,I'm client\n\t");
	bw.flush();
	String str=bi.readLine();
	System.out.println(111111);
	System.out.println(str);
	System.out.println(bi.readLine());
	socket.close();
}
}
